package com.example.sp01.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "course")
public class course {
    @Id
    @Column(name = "Cno")
    private Integer cno; // 科目代号
    
    @Column(name = "Cname")
    private String cname; // 科目名字
    
    @Column(name = "Cgrade1")
    private String cgrade1; // 男生成绩标准
    
    @Column(name = "Cgrade2")
    private String cgrade2; // 女生成绩标准

    // 构造方法
    public course() {}

    public course(Integer cno, String cname, String cgrade1, String cgrade2) {
        this.cno = cno;
        this.cname = cname;
        this.cgrade1 = cgrade1;
        this.cgrade2 = cgrade2;
    }

    // Getter 和 Setter
    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCgrade1() {
        return cgrade1;
    }

    public void setCgrade1(String cgrade1) {
        this.cgrade1 = cgrade1;
    }

    public String getCgrade2() {
        return cgrade2;
    }

    public void setCgrade2(String cgrade2) {
        this.cgrade2 = cgrade2;
    }
}